package schedule

import (
	"blog2021/model"

	"github.com/robfig/cron"
)

var (
	c *cron.Cron
)

func init() {
	c = cron.New()
	c.AddFunc("0 0 6 * * *", func() {
		model.DownloadBingWallpaper()
		model.InitHtmlTags()
	})
	c.Start()
}
